package cloud.maque.admin.service;

import cloud.maque.admin.domain.entity.MqXzqArea;
import cloud.maque.admin.domain.vo.MqXzqAreaVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 4color
 * @description mq_xzq_area服务层
 * @date 2023-03-17
 */
@Service
public interface MqXzqAreaService extends IService<MqXzqArea> {


    List<MqXzqAreaVo> xzqAreaTree(String areaCode, String parentId, String areaId, Boolean isAll, Boolean fromredis);


    /**
     * 获取详情
     *
     * @param xzqAreaId
     * @return
     */
    MqXzqAreaVo DetailById(String xzqAreaId);


    /**
     * 保存行政区区域
     *
     * @param xzq
     * @return
     */
    MqXzqAreaVo Save(MqXzqAreaVo xzq);

    /**
     * 删除行政区区域
     *
     * @param xzqId
     * @return
     */
    Boolean Delete(String xzqId);
}
